import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    // 404 page must be placed at the end !!!
    // { path: '*', redirect: '/404', hidden: true },
    {
        path: '/',
        redirect: '/edit',
    },
    {
        path: '/edit',
        name: 'edit',
        component: () => import('/@/views/Edit/index.vue')
    },
    {
        path: '/sampeol',
        name: 'sampeol',
        component: () => import('/@/views/sampeol/index.vue')
    },
    {
        path: '/404',
        component: () => import('/@/views/404/index.vue'),
        hidden: true
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;